//导入vue的包
import Vue from "vue";
import VueRouter from "vue-router";

//插件注册
Vue.use(VueRouter);

export default new VueRouter({
    //配置路由信息
    routes:[
        {
            path:"/",
            name:"home",
            component:()=>import("../pages/Home.vue")
        }, {
            path:"/about",
            name:"about",
            component:()=>import("../pages/About.vue")
        }
    ],
})